﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace SYH.Config
{
    public class ImageConfig
    {
        public static readonly int ImageSizeLimit = 1024 * 1024 * 5;//图片最大限制

        public static readonly string[] ImageLimitExtensions = { ".jpg", ".png", ".gif", ".jpeg", ".bmp" }; //图片格式限制

        /// <summary>
        /// 获取暂无图片地址的地址
        /// </summary>
        /// <param name="imagesize"></param>
        /// <returns></returns>
        public static string DefaultImageUrl(string imagesize)
        {
            return "/images/notimg/" + imagesize + ".jpg";
        }

        /// <summary>
        /// 空相册的默认封面
        /// </summary>
        public static readonly string AlumnDefaultImage = ConfigurationManager.AppSettings["AlumnDefaultImage"];


        
    }
}
